#ifndef FORMATTER_H
#define FORMATTER_H

class QByteArray;
class QHttpServerResponse;
#include <QJsonObject>
#include <QString>

class Formatter
{
public:
    static const Formatter &Singleton(void);

    QHttpServerResponse processHttpRequest(const QByteArray &data) const;
    QJsonObject processJson(const QJsonObject &json) const;

private:
    Formatter();
    Formatter(const Formatter &) = delete;
    Formatter & operator = (const Formatter &) = delete;

    static const Formatter s_formatter;
};

#endif // FORMATTER_H
